import Vue from 'vue'
import App from './App.vue'
import './registerServiceWorker'
import router from './router'
import store from './store'
import axios from 'axios'
import less from 'less'
import './assets/css/reset.css'
import './assets/css/ant.css'
import './assets/css/transition.css'
import Antd from 'ant-design-vue'
import 'ant-design-vue/dist/antd.css'
import './common/css/com.css'
import VueResource from 'vue-resource'

Vue.use(Antd)
Vue.use(less)
Vue.use(VueResource)
Vue.config.productionTip = false
Vue.prototype.$axios = axios

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')

/* 修改浏览器的标题title */
router.beforeEach((to, from, next) => {
  window.document.title = to.meta.title === undefined ? '迪勤科技' : to.meta.title
  next()
})
